import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import axios from "axios";
import "./plugins/element.js";
//引入dataV
import dataV from "@jiaminghi/data-view";
//引入全局样式
import "./assets/css/global.less";

// 请求基准路径的配置
// axios.defaults.baseURL = "http://192.168.137.225:8000/";
axios.defaults.baseURL = "http://127.0.0.1:8000/";

//将axios添加到vue的原型中
Vue.prototype.$http = axios;

// 将全局的echarts的配置对象挂载到Vue的原型上
Vue.prototype.$echarts = window.echarts;

Vue.config.productionTip = false;

Vue.use(dataV);

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
